package com.dingli.framework.mapper;

import com.dingli.framework.entity.Recruit;
import com.dingli.framework.entity.Train;
import com.dingli.framework.entity.Undertake;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TrainMapper {

    //查询培训列表
    List<Train> TRAIN_selectList(String search);

    //查看培训详情
    List<Train> TRAIN_selectAll (Long tnId);


    //新增培训
    int TRAIN_insert(Train train);

    //修改培训
    int TRAIN_updateById(Train train);

    //删除培训
    int TRAIN_deleteById(Long tnId);

    //审核培训通过
    int TRAIN_updateState (String tnId);

    //审核培训不通过
    int TRAIN_update (String tnId);

    //查询审核中的培训数量
    List<Train> TRAIN_selectState(String tnState);

    //查询审核通过的培训数量
    List<Train> TRAIN_selectState1(String tnState);

    //统计培训数量
    List<Train> TRAIN_All(String tnId);
}
